﻿<UserControl x:Class="MediatorSample.TextDisplayView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding CurrentDisplayText}" Background="Firebrick" Foreground="WhiteSmoke" FontSize="18" Grid.ColumnSpan="2" />
        <Button Content="Register" Grid.Row="1" Grid.Column="0" Command="{Binding RegisterCommand}" CommandParameter="{Binding RegisterParameters}" />
        <Button Content="Unregister" Grid.Row="1" Grid.Column="1" Command="{Binding UnregisterCommand}" />
    </Grid>
</UserControl>
